package cn.com.haopy.dataes.es.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
@ApiModel(value = "就诊人")
public class PatientVo {

    @ApiModelProperty(value = "记录id")
    private Integer id;

    @ApiModelProperty(value = "身份证号码", required = true)
    @NotBlank(message = "身份证号不能为空")
    private String idcardNo;

    @ApiModelProperty(value = "姓名", required = true)
    @NotBlank(message = "姓名不能为空")
    private String name;


    @ApiModelProperty(value = "性别,0未知性别，1男，2女", required = true)
    @NotNull(message = "性别不能为空")
    private Short gender;

    @ApiModelProperty(value = "生日", required = true)
    @NotNull(message = "生日不能为空")
    private LocalDate birthdate;


    @ApiModelProperty(value = "手机号码", required = true)
    @NotBlank(message = "手机号码不能为空")
    private String mobile;


    @ApiModelProperty(value = "监护人姓名")
    private String guardName;


    @ApiModelProperty(value = "监护人身份证号")
    private String guardIdcardNo;


    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "电子健康卡二维码")
    private String qrCodeText;


    @ApiModelProperty(value = "微信授权码")
    private String wechatCode;

    @ApiModelProperty(value = "民族")
    private String nation;

    @ApiModelProperty(value = "短信验证码")
    private String msgCode ;


}
